﻿<%@ Page Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="QuanLyDonHang.aspx.cs" Inherits="TemplateH4.Customer.QuanLyDonHang"%>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

<title>Trang Quản Lý Đơn Hàng</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <!--Thêm vào phần khung và menu--> 
    <div class="extra-img"><img alt="extra-img" src="../images/MasterPage/extra-img.png" class="png"/></div>     
    <div id="nav">
        <ul>
            <li><a href="../Default.aspx">Home</a></li>
            <li><a href="QuanLyDonHang.aspx">Quản Lý Đơn Hàng</a></li>
        </ul>
    </div>
    <!-- content -->
    <div id="content">
        <div class="section">
            <!-- box begin -->
            <div class="box">
                <div class="left-top-corner png">
                    <div class="right-top-corner png">
                        <div class="border-top png">
                        </div>
                    </div>
                </div>
                <div class="border-left png">
                    <div class="border-right png">
                        <div class="inside png">
                        
<!--Thêm vào phần khung và menu-->      
    <div>
    </div>
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
        AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="MaHoaDon" 
        DataSourceID="LinqDataSource1" CellPadding="4" ForeColor="#333333" 
        GridLines="None" Width="715px" Font-Size="15px">
        <RowStyle BackColor="#EFF3FB" HorizontalAlign="Center" 
            VerticalAlign="Middle" Height="40px" />
        <Columns>
            <asp:BoundField DataField="MaHoaDon" HeaderText="MaHoaDon" 
                InsertVisible="False" ReadOnly="True" SortExpression="MaHoaDon" />
            <asp:BoundField DataField="NgayLap" HeaderText="NgayLap" 
                SortExpression="NgayLap" />
            <asp:BoundField DataField="ThanhTien" HeaderText="ThanhTien" 
                SortExpression="ThanhTien" />
            <asp:TemplateField HeaderText="Xem Chi Tiết">
                <ItemTemplate>
                    <a href= "ChiTietDonHang.aspx?MaHd=<%#Eval("MaHoaDon")%>">Xem Chi Tiết</a>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" 
            Height="40px" HorizontalAlign="Center" VerticalAlign="Middle" />
        <EditRowStyle BackColor="#2461BF" HorizontalAlign="Center" 
            VerticalAlign="Middle" />
        <AlternatingRowStyle BackColor="White" />
    </asp:GridView>
    
    <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
        ContextTypeName="LinQ_DTO.EFashionDBDataContext" TableName="shop_hoadons" 
                                Where="UserId == @UserId">
        <WhereParameters>
            <asp:SessionParameter DbType="Guid" Name="UserId" SessionField="MaNguoiDung" />
        </WhereParameters>
    </asp:LinqDataSource>
     <!-- Thêm phần khung -->                         
                        </div>
                    </div>
                </div>
                <div class="left-bot-corner png">
                    <div class="right-bot-corner png">
                        <div class="border-bot png">
                        </div>
                    </div>
                </div>
            </div>
            <!-- box end -->
</asp:Content>